//
//  DishOperView.h
//  XRmenu
//
//  Created by loufq on 11-3-24.
//  Copyright 2011 E0571. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XRmenuBaseView.h"
#import <math.h>


typedef enum
{
	DishOperView_close=0,
	DishOperView_Plus=1,
	DishOperView_Miuns=2,
	DishOperView_Delete=3,
	DishOperView_Detail=4,
}DishOperViewOperType;

typedef enum
{
	DishOper_Album=0,
	DishOper_Photo=1,
	DishOper_Order=2
}DishOperViewType;

@protocol DishOperViewDelegate;

@interface DishOperView : XRmenuBaseView {
	CAShapeLayer *shapeLayer_;
	CGFloat currentArc;
	id<DishOperViewDelegate> delegate; 

	Product* item;
	DishOperViewType type;//
	
	
}
@property (nonatomic, assign) id<DishOperViewDelegate> delegate;
@property (nonatomic, retain) Product *item;
@property (nonatomic, assign) DishOperViewType type;

-(id) initWithConfig:(NSDictionary *)cfg type:(DishOperViewType)aType item:(Product*)aItem;

@end

@protocol DishOperViewDelegate
-(void)dishOperView:(DishOperView*)operView didTappedWith:(DishOperViewOperType)aType;
@end
